
'
' *  NHibernate 代码模版
' 

Imports System.Collections.Generic

Namespace NCS
	''' <summary>
	'''	
	''' </summary>
	<Serializable()> _
	Public Class VoltNew

		#Region "构造方法"
		Public Sub New()
			m_sampleid = 0
			m_mtimeArr = Nothing
			m_cvoltArr = Nothing
			m_svoltArr = Nothing
			m_c2voltArr = Nothing
			m_s2voltArr = Nothing
			m_xn = 0
			m_yn0 = 0
			m_yn1 = 0
			m_yn2 = 0

			m_yn3 = 0
		End Sub
		#End Region


		#Region "私有变量"
		Private m_sampleid As Integer
        Private m_mtimeArr As Byte()
        Private m_cvoltArr As Byte()
        Private m_svoltArr As Byte()
        Private m_c2voltArr As Byte()
        Private m_s2voltArr As Byte()
		Private m_xn As Integer
		Private m_yn0 As Integer
		Private m_yn1 As Integer
		Private m_yn2 As Integer
		Private m_yn3 As Integer

		#End Region


		#Region "公有属性"

		'''<summary>
		'''
		'''</summary>
		Public Overridable Property sampleid() As Integer
			Get
				Return m_sampleid
			End Get
			Set
				m_sampleid = value
			End Set
		End Property

		'''<summary>
		'''
		'''</summary>
        Public Overridable Property mtimeArr() As Byte()
            Get
                Return m_mtimeArr
            End Get
            Set(ByVal value As Byte())
                m_mtimeArr = value
            End Set
        End Property

		'''<summary>
		'''
		'''</summary>
        Public Overridable Property cvoltArr() As Byte()
            Get
                Return m_cvoltArr
            End Get
            Set(ByVal value As Byte())
                m_cvoltArr = value
            End Set
        End Property

		'''<summary>
		'''
		'''</summary>
        Public Overridable Property svoltArr() As Byte()
            Get
                Return m_svoltArr
            End Get
            Set(ByVal value As Byte())
                m_svoltArr = value
            End Set
        End Property

		'''<summary>
		'''
		'''</summary>
        Public Overridable Property c2voltArr() As Byte()
            Get
                Return m_c2voltArr
            End Get
            Set(ByVal value As Byte())
                m_c2voltArr = value
            End Set
        End Property

		'''<summary>
		'''
		'''</summary>
        Public Overridable Property s2voltArr() As Byte()
            Get
                Return m_s2voltArr
            End Get
            Set(ByVal value As Byte())
                m_s2voltArr = value
            End Set
        End Property

		'''<summary>
		'''
		'''</summary>
		Public Overridable Property xn() As Integer
			Get
				Return m_xn
			End Get
			Set
				m_xn = value
			End Set
		End Property

		'''<summary>
		'''
		'''</summary>
		Public Overridable Property yn0() As Integer
			Get
				Return m_yn0
			End Get
			Set
				m_yn0 = value
			End Set
		End Property

		'''<summary>
		'''
		'''</summary>
		Public Overridable Property yn1() As Integer
			Get
				Return m_yn1
			End Get
			Set
				m_yn1 = value
			End Set
		End Property

		'''<summary>
		'''
		'''</summary>
		Public Overridable Property yn2() As Integer
			Get
				Return m_yn2
			End Get
			Set
				m_yn2 = value
			End Set
		End Property

		'''<summary>
		'''
		'''</summary>
		Public Overridable Property yn3() As Integer
			Get
				Return m_yn3
			End Get
			Set
				m_yn3 = value
			End Set
		End Property

		#End Region

		#Region "Rewrite Equals and HashCode"
		''' <summary>
		''' 
		''' </summary>
		Public Overloads Overrides Function Equals(obj As Object) As Boolean
			If Me Is obj Then
				Return True
			End If
			If (obj Is Nothing) OrElse (obj.[GetType]() IsNot [GetType]()) Then
				Return False
			End If
			Dim castObj As VoltNew = DirectCast(obj, VoltNew)
			Return (castObj IsNot Nothing) AndAlso (m_sampleid = castObj.sampleid)
		End Function
		''' <summary>
		''' 用唯一值实现GetHashCode
		''' </summary>
		Public Overloads Overrides Function GetHashCode() As Integer
			Dim hash As Integer = 57
			hash = 27 * hash * m_sampleid.GetHashCode()
			Return hash
		End Function
		#End Region
	End Class
End Namespace
